package com.justech.eat.service;

import com.justech.eat.controller.req.OrderDetailReq;
import com.justech.eat.entity.Order;
import com.justech.eat.entity.OrderDetail;

import java.util.List;

/**
 * @program: eat-service
 * @description: 报餐
 * @author: feifei.li
 * @create: 2020-05-29 12:10
 **/
public interface OrderBook {
    String order_book_update = "orderBookUpdate", order_book_save = "orderBookSave";

    /**
     * 提交报餐
     *
     * @param orderDetailReq
     * @param date
     * @param jobNumber
     * @return
     */
    Order submit(OrderDetailReq orderDetailReq, String date, String jobNumber);

    void submit(OrderDetailReq orderDetailReq);

    Order submit(String date, String jobNumber, int lunch, int dinner, int meal, int night);

    Order submit(String date, String jobNumber, OrderDetail... orderDetails);
}
